package com.alit.http.httpserver;

import java.io.IOException;
import java.nio.channels.Channel;

import lombok.extern.slf4j.Slf4j;

/**
 * @author litong
 * @date 2019年4月18日_下午2:21:48
 * @version 1.0
 */
@Slf4j
public class IOUtils {
	public static void closeQuietly(Channel channel) {
		if (channel != null) {
			try {
				channel.close();
			} catch (IOException e) {
				log.info("socketChannel关闭失败");
				e.printStackTrace();
			}
		}
	}
}
